import time
import random

station_ids = set(random.sample(range(5000), 3000))
point_sequence = random.choices(range(5000), k=10000)


# 判断这些序列的值是否在已有的机站里
A = [point in station_ids for point in point_sequence]
B = [num for num in point_sequence if num in station_ids]

print(A)
print(B)